package pri.hillchen.std.springboot.shiro.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by hillchen on 2017/10/12 0012.
 */
public class Role {
    @TableId
    private Integer rid;
    private String rname;
    @TableField(exist = false)
    private Set<User> users = new HashSet<>();
    @TableField(exist = false)
    private Set<Module> modules = new HashSet<>();

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public Set<User> getUsers() {
        return users;
    }

    public void setUsers(Set<User> users) {
        this.users = users;
    }

    public Set<Module> getModules() {
        return modules;
    }

    public void setModules(Set<Module> modules) {
        this.modules = modules;
    }
}
